import ServerCenter from "../Server/ServerCenter";


export default class QuestSpawn  {
    public static isContest = false;//是否是竞技场  

    /**
     * @param {*} status true/false
     */
    public static setIsContest(status){
        this.isContest = status;
        Log("是否是竞技场",this.isContest);
    }

    public static isWrong = false;//是否是竞技场  

    /**
     * @param {*} status true/false
     */
    public static setIsWrong(status){
        this.isWrong = status;
        Log("是否是错题集",this.isWrong);
    }
    public static questNum;
    public static getWordsInfo(bookid, unit){ //5 6 7 8 9 10 11 12
        let wordsList = ServerCenter.getBookInfo(bookid,unit).wordsList;
        //根据单词数得到题目个数
        if(Object.keys(wordsList).length > 10){
            this.questNum = 12;
        }else{
            this.questNum = 8;
        }
        return wordsList;
    }
    public static wrongArr = [];






}
